import request from '@/utils/request'

// 查询考勤异常处理列表
export function listSdException(query) {
  return request({
    url: '/smartdor/exception/list',
    method: 'get',
    params: query
  })
}


// 查询考勤异常处理详细
export function getSdException(exceptionId) {
  return request({
    url: '/smartdor/exception/info/' + exceptionId,
    method: 'get',
  })
}


// 新增考勤异常处理信息
export function addSdException(data) {
  return request({
    url: '/smartdor/exception/create',
    method: 'post',
    data: data
  })
}

// 修改考勤异常处理信息
export function updateSdException(id,data) {
  return request({
    url: '/smartdor/exception/update/' + id,
    method: 'put',
    data: data
  })
}

// 考勤异常处理状态修改
export function changeSdExceptionStatus(exceptionId, status) {
  const params = {
    status
  }
  return request({
    url: '/smartdor/exception/update/status/' + exceptionId,
    method: 'put',
    params: params
  })
}

// 删除考勤异常处理
export function delSdException(id) {
  return request({
    url: '/smartdor/exception/deleteByIds/' + id,
    method: 'delete'
  })
}
